package com.rds.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rds.common.annotation.Excel;
import com.rds.common.core.domain.BaseEntity;

/**
 * 策略对象 rda_policy
 *
 * @author rds
 * @date 2021-04-25
 */
public class RdaPolicy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 显示名称 */
    @Excel(name = "显示名称")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 版本 */
    @Excel(name = "版本")
    private String revision;

    /** vault */
    @Excel(name = "vault")
    private String vault;

    /** 系统名称 */
    @Excel(name = "系统名称")
    private String systemName;

    /** 表名称 */
    @Excel(name = "表名称")
    private String tableName;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** type */
    @Excel(name = "type")
    private String typeIds;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public String getRevisionRule() {
        return revisionRule;
    }

    public void setRevisionRule(String revisionRule) {
        this.revisionRule = revisionRule;
    }

    /** 版本规则 */
    private String revisionRule;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setRevision(String revision)
    {
        this.revision = revision;
    }

    public String getRevision()
    {
        return revision;
    }
    public void setVault(String vault)
    {
        this.vault = vault;
    }

    public String getVault()
    {
        return vault;
    }
    public void setSystemName(String systemName)
    {
        this.systemName = systemName;
    }

    public String getSystemName()
    {
        return systemName;
    }
    public void setTableName(String tableName)
    {
        this.tableName = tableName;
    }

    public String getTableName()
    {
        return tableName;
    }
    public void setModifyTime(Date modifyTime)
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime()
    {
        return modifyTime;
    }
    public void setTypeIds(String typeIds)
    {
        this.typeIds = typeIds;
    }

    public String getTypeIds()
    {
        return typeIds;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("revision", getRevision())
            .append("vault", getVault())
            .append("systemName", getSystemName())
            .append("tableName", getTableName())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("typeIds", getTypeIds())
            .append("status", getStatus())
            .append("revisionRule", getRevisionRule())
            .toString();
    }
}
